#include "junix.h"
using namespace std;

class A
{
	public:
		A(int i, int j, int k)
			:a(i),b(j),c(k)
		{ }

	public:
		int a;
	protected:
		int b;
	private:
		int c;
};

class B
:public A
{
	public:
		B(int i, int j,int k)
			:A(i,j,k)
		{ }

		//using A::c;

		void f()
		{
			cout<<a<<endl;
			cout<<b<<endl;
		//	cout<<c<<endl;
		}
};

int main(int argc, char **argv)
{
	B b(1,2,3);
	cout<<b.a<<endl;

	/*
	cout<<b.b<<endl;
	cout<<b.c<<endl;
	*/

	b.f();

	A a(1,2,3);
	cout<<a.a<<endl;

	/*
	cout<<a.b<<endl;
	*/
}
